/*
 * CodeSaveCommand.java
 *
 * Created on 2006년 3월 29일 (수), 오후 4:11
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.joinhawaii.admin.homepage;

import java.util.*;



import javax.servlet.*;
import javax.servlet.http.*;

import org.json.simple.JSONObject;

import com.zll.framework.model.HashBox;
import com.zll.framework.servlet.Command;





/**
 *
 * @author eastar
 */
public class UseYnSaveCommand implements Command
{

    public String execute(HttpServletRequest  request, HttpServletResponse response)
    throws Exception
    {
    	HashBox box = new HashBox(request);

		HomePageDAO dao 		= new HomePageDAO();

		JSONObject json = new JSONObject();
//		//List list = service.searchWorkerList(vo);
//		if (list.size() == 1) {
//			json.putAll((Map)list.get(0));
//		} else {
//			json.put("count", list.size());
//		}

		
		request.setAttribute("jsonData", json.toString());

//		dao.saveCode(box);
//
//
//		HashMap result		= new HashMap();
//		result.put("result", 	"true");
//		result.put("target",	box.target);
//		result.put("action",	"/admin/homepage/codeList.jsp");
//
//    	request.setAttribute("result", result);


    	return "/common/json_view.jsp";
    }
}
